package router

import (
	"gin-vue-admin/api/v1"
	"gin-vue-admin/middleware"
	"github.com/gin-gonic/gin"
)

func InitUserOrderDetailRouter(Router *gin.RouterGroup) {
	UserOrderDetailRouter := Router.Group("userOrderDetail").Use(middleware.OperationRecord())
	{
		UserOrderDetailRouter.POST("createUserOrderDetail", v1.CreateUserOrderDetail)   // 新建UserOrderDetail
		UserOrderDetailRouter.DELETE("deleteUserOrderDetail", v1.DeleteUserOrderDetail) // 删除UserOrderDetail
		UserOrderDetailRouter.DELETE("deleteUserOrderDetailByIds", v1.DeleteUserOrderDetailByIds) // 批量删除UserOrderDetail
		UserOrderDetailRouter.PUT("updateUserOrderDetail", v1.UpdateUserOrderDetail)    // 更新UserOrderDetail
		UserOrderDetailRouter.GET("findUserOrderDetail", v1.FindUserOrderDetail)        // 根据ID获取UserOrderDetail
		UserOrderDetailRouter.GET("getUserOrderDetailList", v1.GetUserOrderDetailList)  // 获取UserOrderDetail列表
	}
}
